package com.hxd.mall.module.product.home.bean

import com.hxd.mall.network.base.BaseBean
import com.hxd.mall.network.base.BaseSerializable

/**
 * Create by yinzhengwei on 2019-11-28
 * @Function
 */
class HomeTypeBean : BaseBean() {
    val data: Data? = null
}

data class Data(
    val articleLayout: DataLayout?,
    val audioLayout: DataLayout?,
    //首部banner
    val bannerLayout: DataLayout?,
    //广告图banner
    val bulletinLayout: DataLayout?,
    //品牌楼层
    val campaignLayout: DataLayout?,
    //金刚区
    val channelLayout: DataLayout?,
    val columnLayout: DataLayout?,
    val filterLayout: DataLayout?,
    //首页导航条
    val navigationLayout: DataLayout?,
    val pictureLayout: DataLayout?,
    val posterLayout: DataLayout?,
    //获取商品列表的信息
    val productLayout: DataLayout?,
    val searchLayout: DataLayout?,
    //授权账号信息
    val userSession: UserSession?,
    val videoLayout: DataLayout?,
    //悬浮布局
    val popoverLayout: DataLayout?,
    //首页弹窗布局
    val popupLayout: DataLayout?
) : BaseSerializable()

data class DataLayout(
    val enabled: Boolean,
    val no: String,
    val resources: List<Resource>?,
    val seq: Int,
    //导航条title
    val title: String
) : BaseSerializable()

data class Resource(
    val entryUri: String?,
    val ext: Ext?,
    val no: String?,
    val online: Boolean?,
    val pictUri: String?,
    val seq: Int?,
    val title: String?,
    val type: String?,
    //金刚区要跳转的类型，H5跳webview；NATIVE跳精选包邮页面
    val entryType: String?
) : BaseSerializable()

class Ext(
    val adzondId: Long,
    val channelProductSource: String,
    val effectiveResourceNo: String,
    val endpoint: String,
    val htmlTxt: String,
    val inventoryId: Int,
    val isEffective: Boolean,
    val lineIDs: String,
    val obj_id: String,
    val receiveguid: String,
    val rgb: String,
    val sendguid: String,
    val singleLine: Boolean,
    //弹窗是否展示
    val isShow: Boolean
) : BaseSerializable()

data class UserSession(
    val isLogin: Boolean,
    val isPrivacy: Boolean,
    val isTbAuthed: Boolean
) : BaseSerializable()